
; Climb on top of buildings mod.

; Press and hold the jump key for 3 seconds to get
; on the roof of a building directly infront of you.

004F: create_thread jumpmod  

...

:jumpmod
0001: wait 250 ms 
00D6: if 0 
0256:   player $PLAYER_CHAR defined 
004D: jump_if_false jumpmod 
0006: 16@ = 0  ;; integer values 

:jumpmodloop
0001: wait 0 ms 
00D6: if 1 
80E0:   NOT   player $PLAYER_CHAR driving 
00E1:   key_pressed 0 14 
004D: jump_if_false jumpmod 
00D6: if 0 
0019:   16@ > 3000  ;; integer values 
004D: jump_if_false jumpmodloop 
04C4: create_coordinate 1@ 2@ 3@ from_actor $player_actor offset 0.0 1.0 0.0 
0055: put_player $PLAYER_CHAR at 1@ 2@ -100.0 
0002: jump jumpmod 
